Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: No Bare URLs Not Working on File URI Scheme with Three Slashes after Starting Colong #1032

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

pjkaufman
Copy link
Collaborator

Fixes #1030

There is an issue where if you are using a file URI for something without a host you get file:/// which was not being recognized by the simple URI regex. So I needed to allow for a third slash in the URI checks.

Here is the wikipedia article on file URIs.

Changes Made:

  • Added a UT for the scenario in question
  • Removed an extra blank line that was present in a file
  • Allowed URIs to have 2 or 3 slashes (no host is present)

@pjkaufman pjkaufman merged commit 440fb0f into platers:master Feb 29, 2024
1 check passed
@pjkaufman pjkaufman self-assigned this Feb 29, 2024
@pjkaufman pjkaufman added bug Something isn't working markdown General Markdown or Markdown related issue or feature labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working markdown General Markdown or Markdown related issue or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: No bare URIs breaks file links with triple slashes
1 participant